#ifndef KEYBOARD_H
#define KEYBOARD_H

#include "UserControlledInputDevice.h"

/*
 * Class to handle keyboard input in the game
 */
class Keyboard : public UserControlledInputDevice
{
public:
    Keyboard(OIS::Keyboard *k);
    ~Keyboard() {}
    Ogre::Radian getX();
    Ogre::Radian getY();
    void destroy(OIS::InputManager *i_m) {i_m->destroyInputObject(keyboard);}
    void addKeyboardListener(OIS::KeyListener *kl) {keyboard->setEventCallback(kl);}
    bool isKeyDown(OIS::KeyCode kc) { return keyboard->isKeyDown(kc); }
    void capture() { keyboard->capture(); }
private:
    OIS::Keyboard *keyboard;
    Ogre::Radian x, y;
} ;

#endif
